import tkinter
import os
import xlrd
root=tkinter.Tk()    #创建一个实例对象
root.title("查账")   #标题
root.minsize(360,180)   #窗口大小（宽×高）

def jinhuo():
    rk=tkinter.Tk()    #创建一个实例对象
    rk.title("进货查询")   #标题
    rk.minsize(400,140)   #窗口大小（宽×高）

    #输入
    label0 = tkinter.Label(rk,text='表格存放路径',bg='yellow')
    label0.place(x=20,y=10,width=80,height=30)

    entry0=tkinter.Entry(rk)
    entry0.place(x=110,y=10,width=220,height=30)

    #输入
    label1 = tkinter.Label(rk,text='供应商名称',bg='yellow')
    label1.place(x=20,y=50,width=70,height=30)

    entry1=tkinter.Entry(rk)
    entry1.place(x=100,y=50,width=100,height=30)

    #输入
    label2 = tkinter.Label(rk,text='月',bg='yellow')
    label2.place(x=20,y=90,width=70,height=30)

    entry2=tkinter.Entry(rk)
    entry2.place(x=100,y=90,width=30,height=30)

    #输入
    label3 = tkinter.Label(rk,text='起止日',bg='yellow')
    label3.place(x=20,y=130,width=70,height=30)

    entry3=tkinter.Entry(rk)
    entry3.place(x=100,y=130,width=30,height=30)

    entry4=tkinter.Entry(rk)
    entry4.place(x=140,y=130,width=30,height=30)

    #注释
    label3 = tkinter.Label(rk,text='起始日未填默认1号，\n截止日未填默认31号。',anchor='w')
    label3.place(x=200,y=130,width=120,height=40)
    
    def watch_jinhuo():
        pass
    
    button_watch_jinhuo = tkinter.Button(rk, text='查看', command=watch_jinhuo)
    button_watch_jinhuo.place(x=270, y=60, width=90, height=60)
    
def chuku():
    ck=tkinter.Tk()    #创建一个实例对象
    ck.title("销售查询")   #标题
    ck.minsize(400,140)   #窗口大小（宽×高）

    #输入
    label0 = tkinter.Label(ck,text='表格存放路径',bg='yellow')
    label0.place(x=20,y=10,width=75,height=30)

    entry0=tkinter.Entry(ck)
    entry0.place(x=100,y=10,width=220,height=30)
    
    #输入
    label1 = tkinter.Label(ck,text='销售对象名称',bg='yellow')
    label1.place(x=20,y=50,width=75,height=30)

    entry1=tkinter.Entry(ck)
    entry1.place(x=100,y=50,width=100,height=30)

    #输入
    label2 = tkinter.Label(ck,text='月',bg='yellow')
    label2.place(x=20,y=90,width=70,height=30)

    entry2=tkinter.Entry(ck)
    entry2.place(x=100,y=90,width=30,height=30)

    #输入
    label3 = tkinter.Label(ck,text='起止日',bg='yellow')
    label3.place(x=20,y=130,width=70,height=30)

    entry3=tkinter.Entry(ck)
    entry3.place(x=100,y=130,width=30,height=30)

    entry4=tkinter.Entry(ck)
    entry4.place(x=140,y=130,width=30,height=30)

    #注释
    label3 = tkinter.Label(ck,text='起始日未填默认1号，\n截止日未填默认31号。',anchor='w')
    label3.place(x=200,y=130,width=120,height=40)
    
    def watch_chuku():
        pass

    button_watch_chuku = tkinter.Button(ck, text='查看', command=watch_chuku)
    button_watch_chuku.place(x=270, y=60, width=90, height=60)

def rizhang():
    rz=tkinter.Tk()    #创建一个实例对象
    rz.title("日账单")   #标题
    rz.minsize(350,190)   #窗口大小（宽×高）

    #输入
    label0 = tkinter.Label(rz,text='表格存放路径',bg='yellow')
    label0.place(x=20,y=10,width=75,height=30)

    entry0=tkinter.Entry(rz)
    entry0.place(x=100,y=10,width=220,height=30)
    
    #输入
    label1 = tkinter.Label(rz,text='月',bg='yellow')
    label1.place(x=20,y=50,width=40,height=30)

    entry1=tkinter.Entry(rz)
    entry1.place(x=70,y=50,width=40,height=30)

    #输入
    label2 = tkinter.Label(rz,text='日',bg='yellow')
    label2.place(x=20,y=90,width=40,height=30)

    entry2=tkinter.Entry(rz)
    entry2.place(x=70,y=90,width=40,height=30)

    #输入
    entry3=tkinter.Entry(rz)
    entry3.place(x=190,y=135,width=100,height=40)

    def create_rizhang():
        pass

    button_watch_rizhang = tkinter.Button(rz, text='按店查看进货销售日帐', command=create_rizhang)
    button_watch_rizhang.place(x=20, y=135, width=150, height=40)

def yuezhang():
    yz=tkinter.Tk()    #创建一个实例对象
    yz.title("月账单")   #标题
    yz.minsize(350,140)   #窗口大小（宽×高）

    #输入
    label0 = tkinter.Label(yz,text='表格存放路径',bg='yellow')
    label0.place(x=20,y=10,width=75,height=30)

    entry0=tkinter.Entry(yz)
    entry0.place(x=100,y=10,width=220,height=30)
    
    #输入
    label1 = tkinter.Label(yz,text='月',bg='yellow')
    label1.place(x=20,y=50,width=40,height=30)

    entry1=tkinter.Entry(yz)
    entry1.place(x=70,y=50,width=40,height=30)

    #输入
    entry2=tkinter.Entry(yz)
    entry2.place(x=190,y=90,width=100,height=40)

    def create_yuezhang():
        pass

    button_watch_yuezhang = tkinter.Button(yz, text='按店查看进货销售日帐', command=create_yuezhang)
    button_watch_yuezhang.place(x=20, y=90, width=150, height=40)

button_ruku = tkinter.Button(root, text='进货查询', command=jinhuo)
button_ruku.place(x=70, y=20, width=90, height=60)

button_chuku = tkinter.Button(root, text='销售查询', command=chuku)
button_chuku.place(x=200, y=20, width=90, height=60)

button_rizhang = tkinter.Button(root, text='日账单', command=rizhang)
button_rizhang.place(x=70, y=100, width=90, height=60)

button_yuezhang = tkinter.Button(root, text='月账单', command=yuezhang)
button_yuezhang.place(x=200, y=100, width=90, height=60)

root.mainloop()
